package com.example.demo.common;

import com.example.demo.model.Articleinfo;

import java.util.Comparator;

public class ArticleComparator implements Comparator<Articleinfo> {

    @Override
    public int compare(Articleinfo o1, Articleinfo o2) {
        return o2.getRcount() - o1.getRcount();
    }
}
